import { createStore } from 'vuex'

export default createStore({
  state() {
    return {
      weatherdata: null,
      shuikudata: null,
      zhamstatus: null,
      shuizhidata: null,
      chukulldata: null,
      gaojingtitle: null
    }
  },
  getters: {
  },
  mutations: {
    saveweather(state, val) {
      state.weatherdata = val
      // console.log(state.weatherdata, '6666');
    },
    saveshuiku(state, val) {
      state.shuikudata = val
    },
    savezhamastatus(state, val) {
      state.zhamstatus = val
    },
    saveshuizhi(state, val) {
      state.shuizhidata = val
    },
    savechukull(state, val) {
      state.chukulldata = val
    },
    savegaojingtitle(state, val) {
      state.gaojingtitle = val
    }
  },
  actions: {
  },
  modules: {
  }
})
